package cn.csdj.sism.service;

import cn.csdj.sism.pojo.ObtainEmployment;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.HashMap;
import java.util.List;

/**
 * ObtainEmploymentService接口
 * @author 李加
 * 2023/4/10
 */
public interface ObtainEmploymentService {
    /**
     * 通过id查询
     * @param id
     * @return
     */
    public ObtainEmployment selectById(Integer id);

    /**
     * 查询所有信息
     * @return
     */
    public List<ObtainEmployment> selectAll();

    /**
     * 添加
     * @param obtainEmployment
     * @return
     */
    public int insertOem(ObtainEmployment obtainEmployment);

    /**
     * 修改
     * @param obtainEmployment
     * @return
     */
    public int updateOem(ObtainEmployment obtainEmployment);

    /**
     * 通过id删除
     * @param id
     * @return
     */
    public int dalectOemById(Integer id);

    /**
     * 分页查询
     * @param current
     * @param pageSize
     * @return
     */
    public IPage<ObtainEmployment> selectByPage(Integer current,Integer pageSize);

    /**
     * 按条件分页查询
     * @param condition
     * @return
     */
    IPage<ObtainEmployment> selectPagesByCondition(HashMap condition);
}
